package com.sjy.shopmall.dao;

import com.sjy.shopmall.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.BaseMapper;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Update("UPDATE `shop`.`user` SET `user_name` =#{arg1}  WHERE `id` = #{arg0}")
    int updateUsernameById(long id,String username);

    @Update("UPDATE `shop`.`user` SET `pic` =#{arg1}  WHERE `id` = #{arg0}")
    void updatePic(int id,String pic);
}
